/* 移除节点： ele 节点*/
function removeElement(ele) {
	if(ele!=null) {
		ele.parentNode.removeChild(ele);
	}
}

/* 根据ClassName移除节点：name  ClassName数组*/
function removeByClassName(name) {
	for(n=0; n<name.length; n++) {
		data = document.getElementsByClassName(name[n]);
		for(i=0; i<data.length; i++) {
			removeElement(data[i]);
			console.log(n);
		}
	}
}

/* 根据Id移除节点：name  Id数组*/
function removeByClassId(name) {
	for(n=0; n<name.length; n++) {
		data = document.getElementById(name[n]);
		removeElement(data);
		console.log(n);
	}
}



ClassName = ["readall_box", "btn_open_app_prompt_div"];
Id = ["treeSkill", "first_recommend_list", "comment", "recommend", "operate"];
removeByClassName(ClassName);
removeByClassId(Id);

/* 修改CSS样式 */
document.getElementById("main").style.marginTop = "0px";